package cn.tang.tframe.common.context;

/**
 */
public class MapContextThreadHolder {
    private static ThreadLocal<DefaultMapContext> userContextThreadLocal = new ThreadLocal<>();

    public static void setUserContext(DefaultMapContext userContext){
        userContextThreadLocal.set(userContext);
    }

    public static DefaultMapContext getUserContext(){
        return userContextThreadLocal.get();
    }
}
